import 'package:get/get.dart';
import 'package:yt_devops/components/log_utils.dart';
import 'package:yt_devops/resources/str_res_keys.dart';

class SocElectricityFullChartController extends GetxController {
    List<dynamic> soc = [];
    List<dynamic> chargedElectricity = [];//已充电量
    List<dynamic> needVoltage = [];//需求电压
    List<dynamic> outVoltage = [];//充电输出电压
    List<dynamic> needCurrent = [];//需求电流
    List<dynamic> outCurrent = [];//充电输出电流
    List<String> paramList = [
        ResKey.needVoltage.tr,
        ResKey.outVoltage.tr,
        ResKey.needCurrent.tr,
        ResKey.outCurrent.tr,
    ];
    @override
    void onInit() {
    super.onInit();
    if (Get.arguments != null) {
        if (Get.arguments['soc'] != null) {
            soc = Get.arguments['soc'];
        }
        if (Get.arguments['chargedElectricity'] != null) {
            chargedElectricity = Get.arguments['chargedElectricity'];
        }

        if (Get.arguments['needVoltage'] != null) {
            needVoltage = Get.arguments['needVoltage'];
        }
        if (Get.arguments['outVoltage'] != null) {
            outVoltage = Get.arguments['outVoltage'];
        }
        if (Get.arguments['needCurrent'] != null) {
            needCurrent = Get.arguments['needCurrent'];
        }
        if (Get.arguments['outCurrent'] != null) {
            outCurrent = Get.arguments['outCurrent'];
        }
    }
    Log.d('arguments==' + Get.arguments.toString() );
    }

    @override
    void onReady() {}

    @override
    void onClose() {}

}
